package com.weita.lightfood.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * 字符串处理工具
 * @author IT_Monster at 2019/05/20 20:41.
 */
public class StringUtil {

    public static String stringListToString(List<String> param){
        if (param.size()<1){
            return "";
        }
        String result = "";
        for (int i = 0; i < param.size();i++){
            if (i < param.size() - 1){
                result += param.get(i) + ",";
            }else {
                result += param.get(i);
            }
        }
        return result;
    }
}
